/*
	This program is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Library General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program; if not, write to the Free Software
	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
*/

#include "constantes.h"

#include <QDir>

QString Constantes::APP_NAME("nagaina");
QString Constantes::APP_DISPLAY_NAME("Nagaina");
QString Constantes::APP_VERSION("0.2.0 dev");

QString Constantes::DEFAULT_FULL_DATE_FORMAT("MM.dd.yyyy hh:mm:ss");
QString Constantes::DEFAULT_DATE_FORMAT("MM.dd.yyyy");
QString Constantes::DEFAULT_TIME_FORMAT("hh:mm:ss");

QString Constantes::STYLES_FILENAME("styles.xml");
QString Constantes::TEMPLATES_FILENAME("templates.xml");

QString Constantes::IMAGES_DIRECTORY("images");

QString Constantes::TAG_APPNAME("application");
QString Constantes::TAG_APPVERSION("version");
QString Constantes::TAG_CATEGORY("CATEGORY");
QString Constantes::TAG_PAGE("PAGE");
QString Constantes::TAG_DOCUMENT("document");
QString Constantes::TAG_ELEMENT("element");
QString Constantes::TAG_NAME("name");
QString Constantes::TAG_DATA("data");
QString Constantes::TAG_TYPE("type");
QString Constantes::TAG_DATE("date");
QString Constantes::TAG_EXPANDED("expanded");
QString Constantes::TAG_TAGS("tags");

QString Constantes::TAG_STYLES("styles");
QString Constantes::TAG_STYLE("style");
QString Constantes::TAG_FONT("font");
QString Constantes::TAG_SIZE("size");
QString Constantes::TAG_RED("red");
QString Constantes::TAG_GREEN("green");
QString Constantes::TAG_BLUE("blue");
QString Constantes::TAG_BOLD("bold");
QString Constantes::TAG_ITALIC("italic");
QString Constantes::TAG_UNDERLINE("underline");
QString Constantes::TAG_ALIGNMENT("alignment");

QString Constantes::TAG_TEMPLATES("templates");
QString Constantes::TAG_TEMPLATE("template");
QString Constantes::TAG_SELECTED("selected");

QString Constantes::getConfigPath()
{
	#ifdef Q_WS_WIN
	QString path = QDir::toNativeSeparators(QDir::homePath() + "/Application Data/" + Constantes::APP_NAME + "/");	
	#else
	QString path = QDir::toNativeSeparators(QDir::homePath() + "/.config/" + Constantes::APP_NAME + "/");
	#endif
	
	return path;
}
